package com.dman.multi.ui.comp;

import java.util.List;

/**
 * The Piecewise Meter listener
 */
public interface PiecewiseMeterListener {
	/**
     * Piecewise Meter listener adapter.
     */
    public static class Adapter implements PiecewiseMeterListener {
        @Override
        public void sectionPercentagesChanged(PiecewiseMeter meter, List<Range> rangeList) {
        }
        @Override
        public void orientationChanged(PiecewiseMeter meter) {
        }
    }

    /**
     * The event for orientation change, it can be from Horizontal to vertical
     * @param meter
     */
	void orientationChanged(PiecewiseMeter meter);

	/**
	 * The event for section percentage changes.
	 * @param meter
	 * @param rangeList
	 */
	void sectionPercentagesChanged(PiecewiseMeter meter, List<Range> rangeList);
}
